package com.ruoyi.aqi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aqi.mapper.AqiHourMapper;
import com.ruoyi.aqi.domain.AqiHour;
import com.ruoyi.aqi.service.IAqiHourService;

/**
 * AQI小时Service业务层处理
 * 
 * @author houtaroy
 * @date 2024-03-25
 */
@Service
public class AqiHourServiceImpl implements IAqiHourService 
{
    @Autowired
    private AqiHourMapper aqiHourMapper;

    /**
     * 查询AQI小时
     * 
     * @param id AQI小时主键
     * @return AQI小时
     */
    @Override
    public AqiHour selectAqiHourById(Integer id)
    {
        return aqiHourMapper.selectAqiHourById(id);
    }

    /**
     * 查询AQI小时列表
     * 
     * @param aqiHour AQI小时
     * @return AQI小时
     */
    @Override
    public List<AqiHour> selectAqiHourList(AqiHour aqiHour)
    {
        return aqiHourMapper.selectAqiHourList(aqiHour);
    }

    /**
     * 新增AQI小时
     * 
     * @param aqiHour AQI小时
     * @return 结果
     */
    @Override
    public int insertAqiHour(AqiHour aqiHour)
    {
        return aqiHourMapper.insertAqiHour(aqiHour);
    }

    /**
     * 修改AQI小时
     * 
     * @param aqiHour AQI小时
     * @return 结果
     */
    @Override
    public int updateAqiHour(AqiHour aqiHour)
    {
        return aqiHourMapper.updateAqiHour(aqiHour);
    }

    /**
     * 批量删除AQI小时
     * 
     * @param ids 需要删除的AQI小时主键
     * @return 结果
     */
    @Override
    public int deleteAqiHourByIds(Integer[] ids)
    {
        return aqiHourMapper.deleteAqiHourByIds(ids);
    }

    /**
     * 删除AQI小时信息
     * 
     * @param id AQI小时主键
     * @return 结果
     */
    @Override
    public int deleteAqiHourById(Integer id)
    {
        return aqiHourMapper.deleteAqiHourById(id);
    }
}
